<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/6
  Time: 10:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>

<style type="text/css">
    .not_login, .on_line{
        padding: 5px 130px;
    }
</style>

<!-- 头部导航栏 -->
<div class="head">
    <c:if test="${sessionScope.user == null}">
        <div class="not_login" style="background-color: orange">
            <span style="font-family: 楷体;font-size: 16px;">亲爱的,请  </span><a href="javascript:;" onclick="join_login_page()" style="font-family: 楷体;font-size: 16px;">登录</a>
        </div>
    </c:if>
    <c:if test="${sessionScope.user != null}">
        <div class="on_line">
            <p>终于等到你啦 <span></span></p>
        </div>
    </c:if>
</div>

<script type="text/javascript">
    $(function () {

    })
</script>

<script type="text/javascript">
    function join_login_page() {
        window.location.href = "${ctx}/login.html"
    }
</script>
